#ifndef _WINDOW_H
#define _WINDOW_H

// common headers
#include "common.h"

// local headers
#include "layout.h"

typedef struct sWGeometry sWGeometry;
struct sWGeometry {
	u16 lwidth;		// layout width
	u16 lheight;	// layout height

	u16 width;		// window width
	u16 height;		// window height
};

typedef struct sWindow sWindow;
struct sWindow {
	u32 flags;
	s16 x;
	s16 y;

	struct sLayout *layout;

	struct sWGeometry geo;

//	struct sTheme *theme;
};

sLayout *	w_addLayout		(sWindow *win, u32 flags, sZone *zone);
sWGeometry	w_getGeometry	(sWindow *win);
int			w_init			(sWindow *win);
int			w_render		(sWindow *win);

#endif

